def TupleMulNumber(t, n):
  return t[0] * n, t[1] * n


def TupleAdd(t1, t2):
  return t1[0] + t2[0], t1[1] + t2[1]


def TupleSub(t1, t2):
  return t1[0] - t2[0], t1[1] - t2[1]


def TupleMul(t1, t2):
  return t1[0] * t2[0], t1[1] * t2[1]
